//
//  threadHandle.m
//  MoneyLog
//
//  Created by Max on 11-5-4.
//  Copyright 2011年 wicresoft. All rights reserved.
//

#import "threadHandle.h"


@implementation threadHandle

@synthesize isRun;

-(id) init
{
    if (self == [super init]) {
        
    }
    
    return self;
}


-(void) start
{
    [NSThread detachNewThreadSelector:@selector(threadAction) toTarget:self withObject:nil];
    isRun = YES;
}

-(void) stop
{
    isRun = NO;
}

-(void) threadAction
{
    while (isRun) {
         
    }
}

@end
